local pickup = script.Parent local function onTouch(otherPart) local hum = otherPart.Parent:FindFirstChild("Humanoid") if hum and hum.Health < hum.MaxHealth then hum.Health = hum.MaxHealth pickup:Destroy() end end pickup.Touched:Connect(onTouch)